package cn.codecrab.ai.langchain4j.config;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王刚
 * @since 2025年05月11日 18:16
 */
@Configuration
public class ElasticSearchConfig {

    @Bean
    public RestClient restClient() {
        return RestClient.builder(HttpHost.create("http://localhost:9200")).build();
    }

}
